package sz2;

public class TestValidate {
    public static void main(String[] args) {
        ValidatorService service = (ValidatorService) ValidationProxy.newInstance(new ValidatorServiceImpl());
        try{
            service.validateParameter(5.5);
            //service.validateParameter(-1.0);
            //service.validateParameter(11.0);
            //service.validateParameter(null);
        }catch(Exception e){
            e.printStackTrace();
            System.out.println(e.getMessage());
        }
    }
}
